| 300 |
How do I change the cell's foreground color
Dim h With Exg2antt1 .Columns.Add("C1") .Columns.Add("C2") With .Items h = .AddItem("Cell 1") .set_CellValue(h,1,"Cell 2") .set_CellForeColor(h,1,Color.FromArgb(255,0,0)) End With End With |
| 299 |
How do I change the visual effect for the cell, using your EBN files
Dim h With Exg2antt1 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .Columns.Add("C1") .Columns.Add("C2") With .Items h = .AddItem("Cell 1") .set_CellValue(h,1,"Cell 2") .set_CellBackColor32(h,1,&H1000000) End With End With |
| 298 |
How do I change the cell's background color
Dim h With Exg2antt1 .Columns.Add("C1") .Columns.Add("C2") With .Items h = .AddItem("Cell 1") .set_CellValue(h,1,"Cell 2") .set_CellBackColor(h,1,Color.FromArgb(255,0,0)) End With End With |
| 297 |
How do I change the caption or value for a particular cell
|
| 296 |
How do I get the handle of the cell
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root 1") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) .set_CellBold(Nothing,.get_ItemCell(h,0),True) End With End With |
| 295 |
How do I retrieve the focused item
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root 1") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) .set_ItemBold(.FocusItem,True) End With End With |
| 294 |
How do I get the number or count of child items
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root 1") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) .AddItem(.get_ChildCount(h)) End With End With |
| 293 |
How do I enumerate the visible items
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root 1") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) h = .AddItem("Root 2") .set_ItemBold(.FirstVisibleItem,True) .set_ItemBold(.get_NextVisibleItem(.FirstVisibleItem),True) End With End With |
| 292 |
How do I enumerate the siblings items
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root 1") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) h = .AddItem("Root 2") .set_ItemBold(.get_NextSiblingItem(.FirstVisibleItem),True) .set_ItemBold(.get_PrevSiblingItem(.get_NextSiblingItem(.FirstVisibleItem)),True) End With End With |
| 291 |
How do I get the parent item
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root 1") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) .set_ItemBold(.get_ItemParent(.get_ItemChild(h)),True) End With End With |
| 290 |
How do I get the first child item
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root 1") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) .set_ItemBold(.get_ItemChild(h),True) End With End With |
| 289 |
How do I enumerate the root items
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root 1") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) h = .AddItem("Root 2") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ItemBold(.get_RootItem(0),True) .set_ItemUnderline(.get_RootItem(1),True) End With End With |
| 288 |
I have a hierarchy, how can I count the number of root items
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root 1") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) h = .AddItem("Root 2") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .AddItem(.RootCount) End With End With |
| 287 |
How can I make an item unselectable, or not selectable
Dim h With Exg2antt1 .Columns.Add("Column") With .Items h = .AddItem("unselectable - you can't get selected") .set_SelectableItem(h,False) .AddItem("selectable") End With End With |
| 286 |
How can I hide or show an item
Dim h With Exg2antt1 .Columns.Add("Column") With .Items h = .AddItem("hidden") .set_ItemHeight(h,0) .set_SelectableItem(h,False) .AddItem("visible") End With End With |
| 285 |
How can I change the height for all items
With Exg2antt1 .DefaultItemHeight = 32 .Columns.Add("Column") .Items.AddItem("One") .Items.AddItem("Two") End With |
| 284 |
How do I change the height of an item
With Exg2antt1 .ScrollBySingleLine = True .Columns.Add("Default") With .Items .set_ItemHeight(.AddItem("height"),128) End With .Items.AddItem("enabled") End With |
| 283 |
How do I disable or enable an item
|
| 282 |
How do I display as strikeout a cell
|
| 281 |
How do I display as strikeout a cell or an item
|
| 280 |
How do I display as strikeout an item
|
| 279 |
How do I underline a cell
|
| 278 |
How do I underline a cell or an item
|
| 277 |
How do I underline an item
|
| 276 |
How do I display as italic a cell
|
| 275 |
How do I display as italic a cell or an item
|
| 274 |
How do I display as italic an item
|
| 273 |
How do I bold a cell
|
| 272 |
How do I bold a cell or an item
|
| 271 |
How do I bold an item
|
| 270 |
How do I change the foreground color for the item
Dim h,hC With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root") hC = .InsertItem(h,Nothing,"Child 1") .set_ItemForeColor(hC,Color.FromArgb(255,0,0)) .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) End With End With |
| 269 |
How do I change the visual appearance for the item, using your EBN technology
|
| 268 |
How do I change the background color for the item
Dim h,hC With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root") hC = .InsertItem(h,Nothing,"Child 1") .set_ItemBackColor(hC,Color.FromArgb(255,0,0)) .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) End With End With |
| 267 |
How do I expand or collapse an item
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) End With End With |
| 266 |
How do I associate an extra data to an item
|
| 265 |
How do I get the number or count of items
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) End With With .Items .AddItem(.ItemCount) End With End With |
| 264 |
How can I specify the width of the ActiveX control, when using the InsertControlItem property
Dim h With Exg2antt1 .ScrollBySingleLine = False .TreeColumnIndex = 1 .DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines .Columns.Add("C1") .Columns.Add("C2") .Columns.Add("C3") With .Items h = .InsertControlItem(Nothing,"MSCAL.Calendar") .set_ItemWidth(h,128) .set_CellValue(h,0,"This is a bit of text that is shown in the first column") .set_CellSingleLine(h,0,exontrol.EXG2ANTTLib.CellSingleLineEnum.exCaptionWordWrap) .set_CellValue(h,2,"This is a bit of text that is shown in the third column") .set_CellSingleLine(h,2,exontrol.EXG2ANTTLib.CellSingleLineEnum.exCaptionWordWrap) End With End With |
| 263 |
How can I put the ActiveX control in a different column, when using the InsertControlItem property
Dim h With Exg2antt1 .ScrollBySingleLine = False .DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines .Columns.Add("C1") .Columns.Add("C2") .Columns.Add("C3") With .Items h = .InsertControlItem(Nothing,"MSCAL.Calendar") .set_CellValue(h,0,"This is a bit of text that is shown in the first column") .set_CellSingleLine(h,0,exontrol.EXG2ANTTLib.CellSingleLineEnum.exCaptionWordWrap) .set_ItemWidth(h,-32001) .set_CellValue(h,2,"This is a bit of text that is shown in the third column") .set_CellSingleLine(h,2,exontrol.EXG2ANTTLib.CellSingleLineEnum.exCaptionWordWrap) End With End With |
| 262 |
Is there any function I can use to get the program or the control identifier I've been using when called the InsertControlItem
Dim h With Exg2antt1 .Columns.Add("Default") .ScrollBySingleLine = False .LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot With .Items h = .InsertControlItem(Nothing,"MSCAL.Calendar") .InsertItem(h,Nothing,.get_ItemControlID(h)) .set_ExpandItem(h,True) h = .InsertControlItem(Nothing,"MSChart20Lib.MSChart") .set_ItemAppearance(h,exontrol.EXG2ANTTLib.AppearanceEnum.Etched) .InsertItem(h,Nothing,.get_ItemControlID(h)) .set_ExpandItem(h,True) End With End With |
| 261 |
How can I change the height of newly created ActiveX control, using the InsertControlItem
|
| 260 |
How can I change the border for newly created ActiveX control, using the InsertControlItem
|
| 259 |
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root") With .get_ItemObject(.InsertControlItem(h,"MSCAL.Calendar")) .BackColor = Color.FromArgb(255,255,255) .GridCellEffect = 0 .ShowTitle = False .ShowDateSelectors = False End With .set_ExpandItem(h,True) End With End With |
| 258 |
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root") With .get_ItemObject(.InsertControlItem(h,"MSCAL.Calendar")) .BackColor = Color.FromArgb(255,255,255) End With .set_ExpandItem(h,True) End With End With |
| 257 |
How can I insert an ActiveX control
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root") .InsertControlItem(h,"MSCAL.Calendar") .set_ExpandItem(h,True) End With End With |
| 256 |
How can I change at runtime the parent of the item
Dim hC,hP With Exg2antt1 .LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot .Columns.Add("Default") With .Items hP = .AddItem("Root") hC = .AddItem("Child") .SetParent(hC,hP) End With End With |
| 255 |
How can I sort the items
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) End With .Columns.Item("Default").SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortDescending End With |
| 254 |
How do I sort the child items
Dim h With Exg2antt1 .Columns.Add("Default") With .Items h = .AddItem("Root") .InsertItem(h,Nothing,"Child 1") .InsertItem(h,Nothing,"Child 2") .set_ExpandItem(h,True) .SortChildren(h,0,False) End With End With |
| 253 |
How can I ensure or scroll the control so the item fits the control's client area
Dim h With Exg2antt1 .Columns.Add("Default") h = .Items.AddItem("item") .Items.EnsureVisibleItem(h) End With |
| 252 |
How can I remove or delete all items
|
| 251 |
How can I remove or delete an item
Dim h With Exg2antt1 .Columns.Add("Default") h = .Items.AddItem("removed item") .Items.RemoveItem(h) End With |
| 250 |
How can I add or insert child items
Dim h With Exg2antt1 .LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot .Columns.Add("C1") .Columns.Add("C2") With .Items h = .AddItem("Cell 1") .set_CellValue(h,1,"Cell 2") .set_CellValue(.InsertItem(h,Nothing,"Cell 3"),1,"Cell 4") .set_CellValue(.InsertItem(h,Nothing,"Cell 5"),1,"Cell 6") .set_ExpandItem(h,True) End With End With |
| 249 |
How can I add or insert a child item
With Exg2antt1 .LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot .Columns.Add("Default") With .Items .InsertItem(.AddItem("root"),Nothing,"child") End With End With |
| 248 |
How can I add or insert an item
Dim h With Exg2antt1 .Columns.Add("C1") .Columns.Add("C2") With .Items .set_CellValue(.AddItem("Cell 1"),1,"Cell 2") h = .AddItem("Cell 3") .set_CellValue(h,1,"Cell 4") End With End With |
| 247 |
How can I add or insert an item
|
| 246 |
How can I get the columns as they are shown in the control's sortbar
Dim var_Object With Exg2antt1 var_Object = .Columns.get_ItemBySortPosition(0) End With |
| 245 |
How can I access the properties of a column
|
| 244 |
How can I remove all the columns
|
| 243 |
How can I remove a column
|
| 242 |
How can I get the number or the count of columns
Dim var_Count With Exg2antt1 var_Count = .Columns.Count End With |
| 241 |
How can I change the font for all cells in the entire column
Dim f With Exg2antt1 f = New stdole.StdFont() With f .Name = "Tahoma" .Size = 12 End With With .ConditionalFormats.Add("1") .Font = f .ApplyTo = exontrol.EXG2ANTTLib.FormatApplyToEnum.exFormatToColumns End With .Columns.Add("Column") .Items.AddItem(0) .Items.AddItem(1) End With |
| 240 |
How can I change the background color for all cells in the column
Dim var_ConditionalFormat With Exg2antt1 var_ConditionalFormat = .ConditionalFormats.Add("1") With var_ConditionalFormat .BackColor = Color.FromArgb(255,0,0) .ApplyTo = exontrol.EXG2ANTTLib.FormatApplyToEnum.exFormatToColumns End With .Columns.Add("Column") .Items.AddItem(0) .Items.AddItem(1) End With |
| 239 |
How can I change the foreground color for all cells in the column
Dim var_ConditionalFormat With Exg2antt1 var_ConditionalFormat = .ConditionalFormats.Add("1") With var_ConditionalFormat .ForeColor = Color.FromArgb(255,0,0) .ApplyTo = exontrol.EXG2ANTTLib.FormatApplyToEnum.exFormatToColumns End With .Columns.Add("Column") .Items.AddItem(0) .Items.AddItem(1) End With |
| 238 |
How can I show as strikeout all cells in the column
Dim var_ConditionalFormat With Exg2antt1 var_ConditionalFormat = .ConditionalFormats.Add("1") With var_ConditionalFormat .StrikeOut = True .ApplyTo = exontrol.EXG2ANTTLib.FormatApplyToEnum.exFormatToColumns End With .Columns.Add("Column") .Items.AddItem(0) .Items.AddItem(1) End With |
| 237 |
How can I underline all cells in the column
Dim var_ConditionalFormat With Exg2antt1 var_ConditionalFormat = .ConditionalFormats.Add("1") With var_ConditionalFormat .Underline = True .ApplyTo = exontrol.EXG2ANTTLib.FormatApplyToEnum.exFormatToColumns End With .Columns.Add("Column") .Items.AddItem(0) .Items.AddItem(1) End With |
| 236 |
How can I show in italic all data in the column
Dim var_ConditionalFormat With Exg2antt1 var_ConditionalFormat = .ConditionalFormats.Add("1") With var_ConditionalFormat .Italic = True .ApplyTo = exontrol.EXG2ANTTLib.FormatApplyToEnum.exFormatToColumns End With .Columns.Add("Column") .Items.AddItem(0) .Items.AddItem(1) End With |
| 235 |
How can I bold the entire column
Dim var_ConditionalFormat With Exg2antt1 var_ConditionalFormat = .ConditionalFormats.Add("1") With var_ConditionalFormat .Bold = True .ApplyTo = exontrol.EXG2ANTTLib.FormatApplyToEnum.exFormatToColumns End With .Columns.Add("Column") .Items.AddItem(0) .Items.AddItem(1) End With |
| 234 |
How can I display a computed column and highlight some values that are negative or less than a value
Dim var_ConditionalFormat With Exg2antt1 .Columns.Add("A") .Columns.Add("B") .Columns.Add("(A+B)*1.19").ComputedField = "(dbl(%0) + dbl(%1)) * 1.19" With .Items .set_CellValue(.AddItem(1),1,2) End With With .Items .set_CellValue(.AddItem(10),1,20) End With var_ConditionalFormat = .ConditionalFormats.Add("dbl(%2) > 10") With var_ConditionalFormat .Bold = True .ForeColor = Color.FromArgb(255,0,0) .ApplyTo = &H2 End With End With |
| 233 |
Can I display a computed column so it displays the VAT, or SUM
|
| 232 |
How can I show a column that adds values in the cells
|
| 231 |
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
Dim var_Column With Exg2antt1 var_Column = .Columns.Add("Filter") With var_Column .FilterOnType = True .DisplayFilterButton = True .AutoSearch = exontrol.EXG2ANTTLib.AutoSearchEnum.exContains End With .Items.AddItem("Canada") .Items.AddItem("USA") End With |
| 230 |
Is there any function to filter the control's data as I type, something like filter on type
Dim var_Column With Exg2antt1 var_Column = .Columns.Add("Filter") With var_Column .FilterOnType = True .DisplayFilterButton = True End With .Items.AddItem("Canada") .Items.AddItem("USA") End With |
| 229 |
How can I programmatically filter a column
|
| 228 |
How can I show or display the control's filter
|
| 227 |
How can I customize the items being displayed in the drop down filter window
|
| 226 |
How can I change the order or the position of the columns in the sort bar
With Exg2antt1 .SortBarVisible = True .SortBarColumnWidth = 48 .Columns.Add("C1").SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending .Columns.Add("C2").SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortDescending .Columns.Item("C2").SortPosition = 0 End With |
| 225 |
How do I arrange my columns on multiple levels
|
| 224 |
How do I arrange my columns on multiple lines
With Exg2antt1 .HeaderHeight = 32 .Columns.Add("").HTMLCaption = "Line 1<br>Line 2" End With |
| 223 |
How can I display all cells using HTML format
|
| 222 |
How can I display all cells using multiple lines
|
| 221 |
How do change the vertical alignment for all cells in the column
|
| 220 |
How do change the foreground color for all cells in the column
|
| 219 |
How do change the background color for all cells in the column
|
| 218 |
How do I show buttons for all cells in the column
|
| 217 |
How do I show buttons for all cells in the column
|
| 216 |
How do I display radio buttons for all cells in the column
|
| 215 |
How do I display checkboxes for all cells in the column
|
| 214 |
How can I display a tooltip when the cursor hovers the column
|
| 213 |
Is there any function to assign a key to a column instead using its name or capion
|
| 212 |
Is there any function to assign any extra data to a column
|
| 211 |
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header
|
| 210 |
How can I specify the maximum width for the column, if I use WidthAutoResize property
|
| 209 |
How can I specify the minimum width for the column, if I use WidthAutoResize property
|
| 208 |
Is there any option to resize the column based on its data, captions
|
| 207 |
How can I align the icon in the column's header in the center
|
| 206 |
How do I align the icon in the column's header to the right
|
| 205 |
How do I show or hide the sorting icons, but still need sorting
|
| 204 |
How do I enable or disable the entire column
|
| 203 |
How do I disable drag and drop columns
|
| 202 |
How do I disable resizing a column at runtime
|
| 201 |
How can I align the column to the right, and its caption too
|
